import jsonpath


def extract_info(json, expr):
    json_data = json.json()[expr]
    return json_data


def extract(json_info, expr):
    res = jsonpath.jsonpath(json_info, expr)
    str_res = ','.join(res)
    print(f"这是extract返回的数据格式：{type(res)}")
    return res
